<template>
    <div>
        <bindEmail v-if="!verifyTrue" :verifyTrue="true" @verifyClick="verifyClick"></bindEmail>
        <confirmPassWord v-else :formData="formData1" type="email"></confirmPassWord>
    </div>
</template>
<script setup>
import { ref } from 'vue';
import bindEmail from '../../bindEmail/index.vue'
import confirmPassWord from './confirmPassWord.vue'
import commonHooks from "../../commonHooks";


const { changewithdrawPassword, verifyTrue } = commonHooks()
const formData1 = ref()

const verifyClick = (formData) => {
    formData1.value = formData
    const params = {
        step: 1,
        operate_type: 4,
        ...formData1.value
    }
    changewithdrawPassword(params, 1, 'email')

}

</script>